<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .tudou{
            width: 444px;
            height: 320px;
            background-color: pink;
            position: relative;
        }
        .tudou img{
            height: 100%;
            width: 100%;
        }
        .tudou .mask{
            display: none;
            height: 100%;
            width: 100%;
            background: rgba(0,0,0,0.4) url('./play.jpg') no-repeat center ;
            position: absolute;
        }
        /* 当鼠标经过了土豆这个盒子，让里面的遮罩层显示 */
        .tudou:hover .mask{
            display:block
        }
    </style>
</head>
<body>
    <div class="tudou">
        <div class="mask"></div>
        <img src="../liqin.jpg" alt="">
    </div>
</body>
</html>